package com.chalk.service.impl;

import com.chalk.common.exception.ServiceException;
import com.chalk.dao.SellerDao;
import com.chalk.model.Seller;
import com.chalk.service.SellerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * @ProjectName: mall-parent
 * @Package: com.chalk.service.impl
 * @ClassName: SellerServiceImpl
 * @Author: haha  86130
 * @Description:
 * @Date: 2021/9/22 14:48
 * @Version: 1.0
 */

@Service
@Transactional(rollbackFor = ServiceException.class)
public class SellerServiceImpl implements SellerService {

    @Autowired
    private SellerDao sellerDao;


    @Override
    public Seller selectById(String id) {
        return sellerDao.selectById(id);
    }
    @Override
    public boolean updateById(Seller seller) {
        return sellerDao.updateById(seller)>0?true:false;
    }
}
